home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / educate / 7_dayc3.zip / TUTOR.ZIP / CT3.DAT < prev    next >
Text File  |  1993-01-08  |  39KB  |  837 lines

  1. CLS,1,25,7,0
  2. 18,0,15,0,"DAY 3:  DISK OPERATING SYSTEM"
  3. MAIN,NULL
  4. CLS,1,25,0,2
  5. BOX,1,1,25,80,1,10,2
  6. 3,14,0,2, "    ┌─────────────────┐"
  7. 4,14,0,2, "    │ ███████████████ │" 
  8. 5,14,0,2, "    │ ███████████████ │             ┌────────────────┐"
  9. 6,14,0,2, "    │ ███████████████ │             │ Drew Software  │"
  10. 7,14,0,2, "    │ ███████████████ │             │    CLASSWARE   │"
  11. 8,14,0,2, "    └──┬───────────┬──┘             │                │"
  12. 9,14,0,2, "┌──────┴───────────┴──────┐         │  INTRODUCTION  │" 
  13. 10,14,0,2,"│ ┌┐┌──┐  ███████ ███████ │         │       TO       │"
  14. 11,14,0,2,"│ └┘└──┘                  │         │    COMPUTERS   │"
  15. 12,14,0,2,"│ ║║║║║║  ███████ ███████ │         │                │"
  16. 13,14,0,2,"└─────────────────────────┘         └────────────────┘"
  17. 11,24,2,0,"───────┼───────"
  18. 10,31,2,0,"│"
  19. 12,31,2,0,"│"
  20. 14,0,10,2,"HARDWARE and SOFTWARE"
  21. 16,8,0,2,"The term HARDWARE refers to computer EQUIPMENT.  This would be your"
  22. 16,17,11,2,"HARDWARE"
  23. 17,8,0,2,"CPU, video monitor, printer, modem, hard disk drive, cables, etc."
  24. SPACE,2,0
  25. 19,8,1,2,"The term SOFTWARE refers to PROGRAMS, sets of instructions that tell"
  26. 19,17,14,2,"SOFTWARE"
  27. 19,36,15,2,"PROGRAMS"
  28. 20,8,1,2,"the computer how to perform a task.  The computer looks at that set"
  29. 21,8,1,2,"of instructions and performs the steps given it one at a time.  This"
  30. 22,8,1,2,"Drew Software Classware system is a program... SOFTWARE."
  31. SPACE,2,1
  32. CLS,1,25,5,7
  33. BOX,1,1,25,80,1,14,7
  34. 3,0,14,7,"TO ILLUSTRATE..."
  35. 5,8,1,7,"To illustrate hardware/software use, we're going to tell you two"
  36. 6,8,1,7,"additional things that we didn't discuss before:"
  37. SPACE,7,1
  38. 8,0,10,7,"HARDWARE"
  39. 9,8,4,7,"DO NOT DO THE FOLLOWING... YET:  Sometimes you may need to RESET your"
  40. 10,8,4,7,"computer system.  This may be required when you are using a poorly-"
  41. 11,8,4,7,"written program that has no other way to exit.  Rather than turn the"
  42. 12,8,4,7,"computer off, which is hard on the system, use CTRL ALT DEL (press"
  43. 13,8,4,7,"CTRL and hold it down, hold down ALT, and press DEL).  This will"
  44. 14,8,4,7,"perform a WARM BOOT and restart your system.  WARNING!!! This"
  45. 14,54,14,7,"WARNING!!!"
  46. 15,8,4,7,"erases ALL RAM information, so make sure you KNOW you want to do this"
  47. 16,8,4,7,"before pressing the buttons.  DO NOT DO THIS NOW or you will stop"
  48. 17,8,4,7,"this tutoring session!"
  49. SPACE,7,4
  50. CLS,8,17,5,7
  51. BOX,1,1,25,80,1,14,7
  52. 8,0,11,7,"SOFTWARE"
  53. 9,8,5,7,"Take a look at a floppy disk.  See that notch in one corner?  Perhaps"
  54. 10,8,5,7,"the notch is covered by a piece of black or silver tape.  That is"
  55. 11,8,5,7,"called the WRITE PROTECT NOTCH.  If you have a diskette that you"
  56. 12,8,5,7,"do not want to be accidentally overwritten somehow, place a protect"
  57. 13,8,5,7,"tape over this notch.  If it is covered, the computer will not write"
  58. 14,8,5,7,"on the diskette; it will only read it.  If you wish to store new"
  59. 15,8,5,7,"information on that diskette, it must have this tab uncovered."
  60. SPACE,7,5
  61. 18,8,0,7,"There you have two hints, one hardware, one software.  Remember that"
  62. 19,0,0,7,"HARDWARE = EQUIPMENT              SOFTWARE = PROGRAMS."
  63. SPACE,7,0
  64. CLS,1,25,5,1
  65. BOX,1,1,25,80,1,14,1
  66. 3,0,4,1, "████████          █████████          █████████    "
  67. 4,0,4,1, "█      ██        ██       ██        ██            "
  68. 5,0,4,1, "█       ██      ██         ██      ██             "
  69. 6,0,4,1, "█        █      █           █       ███████████   "
  70. 7,0,4,1, "█       ██      ██         ██                 ██  "
  71. 8,0,4,1, "█      ██        ██       ██                 ██   "
  72. 9,0,4,1, "████████   █      █████████   █      █████████   █"
  73. 11,0,10,1,"  DISK            OPERATING           SYSTEM      "
  74. 12,8,7,1,"The Disk Operating System is the heart of your computer.  This is"
  75. 13,8,7,1,"a program that was written in order to allow your computer to"
  76. 14,8,7,1,"perform requried tasks."
  77. SPACE,1,7
  78. 16,8,7,1,"By following the DOS instructions, the computer knows how to read"
  79. 17,8,7,1,"and write to disk drives, print information on paper, accept your"
  80. 18,8,7,1,"keyboard responses, and display information on your monitor."
  81. SPACE,1,7
  82. CLS,1,25,0,2
  83. BOX,1,1,25,80,1,10,2
  84. 3,0,14,2,"DIFFERENT DOS VERSIONS"
  85. 5,8,0,2,"There are several differnt types of DOS.  The most widely used is"
  86. 6,8,0,2,"IBM's PC-DOS (trademark of IBM).  This is the version of DOS that"
  87. 6,14,15,2,"PC-DOS"
  88. 7,8,0,2,"comes with IBM computers.  Another kind is MS-DOS which is"
  89. 8,8,0,2,"produced by the Microsoft Corporation (again, TM Microsoft).  Oddly"
  90. 9,8,0,2,"enough, both DOS packages are practically the same thing.  DOS was"
  91. 10,8,0,2,"originally written by Microsoft and then licensed to IBM.  There are"
  92. 11,8,0,2,"SOME differences in the two packages; PC-DOS contains some options"
  93. 12,8,0,2,"designed to work ONLY with IBM computers.  But for the most part,"
  94. 13,8,0,2,"both packages run exactly the same, use the same commands, and will"
  95. 14,8,0,2,"work with almost every IBM compatible program in existence."
  96. SPACE,2,0
  97. 16,8,1,2,"In addition, there are different version NUMBERS, ranging from"
  98. 17,8,1,2,"DOS 1.0 though DOS 5.0+ (as of the time of the writing of this"
  99. 18,8,1,2,"tutoral system).  This Drew Software Classware package covers"
  100. 19,8,1,2,"the commands you will use in the day to day scope of business and"
  101. 20,8,1,2,"personal operation--the commands that will be of value to you."
  102. SPACE,2,1
  103. CLS,1,25,0,3
  104. BOX,1,1,25,80,1,10,3
  105. 3,0,14,3,"THREE DOS AREAS"
  106. 5,0,0,3,"DOS has three main categories we will be considering:"
  107. 6,0,0,3,"   1. FILENAMES     2. COMMANDS     3. DIRECTORIES"
  108. SPACE,3,0
  109. 8,8,1,3,"FILENAMES are names that are given to programs and DATA FILES so that"
  110. 8,8,10,3,"FILENAMES"
  111. 9,8,1,3,"they may be identified at a future date (a DATA FILE is a collection"
  112. 10,8,1,3,"of information under one filename).  Every program or data file on"
  113. 11,8,1,3,"your computer has its own, individual file name."
  114. SPACE,3,1
  115. 13,8,0,3,"COMMANDS are a set of pre-designed instructions that you will give"
  116. 13,8,15,3,"COMMANDS"
  117. 14,8,0,3,"your computer in order to get it to perform a specific function."
  118. 15,8,0,3,"These commands may cause your computer to store information in its"
  119. 16,8,0,3,"memory, send data to the printer to be put on paper, or retrive data"
  120. 17,8,0,3,"so that you may view it on the video monitor."
  121. SPACE,3,0
  122. 19,8,0,3,"DIRECTORIES and SUBDIRECTORIES are areas of disk storage that are set"
  123. 19,8,14,3,"DIRECTORIES"
  124. 19,24,14,3,"SUBDIRECTORIES"
  125. 20,8,0,3,"aside for specific use.  Directories are most often used on hard disk"
  126. 21,8,0,3,"and are seldom used on floppy diskette.  For example, you may have one"
  127. 22,8,0,3,"directory which holds accounting information, another which keeps"
  128. 23,8,0,3,"business letters, and another which stores estimates."
  129. SPACE,3,0
  130. CLS,1,25,0,4
  131. BOX,1,1,25,80,1,10,4
  132. 3,0,3,4,"FILENAMES"
  133. 5,8,0,4,"Filenames must conform to a standard, but it is a simple one, easy to"
  134. 6,8,0,4,"remember:"
  135. 7,8,0,4,"   1. Filenames may consist of UP TO 8 characters.  No more than 8."
  136. SPACE,4,0
  137. 8,8,0,4,"   2. Filenames may have an EXTENSION of 3 or fewer characters to"
  138. 9,8,0,4,"      indicate the TYPE of file."
  139. SPACE,4,0
  140. 10,8,0,4,"  3. If an extension is used, the filename and extension must be"
  141. 11,8,0,4,"     separated by a period (.)."
  142. SPACE,4,0
  143. 12,8,0,4,"  4. There are some characters that cannot be used in a filename."
  144. 13,8,0,4,"     For safety, it is best to limit filenames to alphabetic and"
  145. 14,8,0,4,"     numeric characters (A-Z and 0-9)."
  146. SPACE,4,0
  147. 15,8,0,4,"  5. No two files in the same directory may have the same filename."
  148. 16,8,0,4,"     If you attempt to do so, the first file will be overwritten by"
  149. 17,8,0,4,"     the second."
  150. SPACE,4,0
  151. 19,0,1,4,"Here are some examples of valid filenames:"
  152. 20,0,1,4,"TESTFILE.DOC   GAME.BAS   CLIENTS   15MNTH.DAT   FILENAME.EXT"
  153. SPACE,4,1
  154. CLS,1,25,3,0
  155. BOX,1,1,25,80,1,12,0
  156. 3,0,10,0,"FILENAMES -- EXTENSIONS"
  157. 5,8,3,0,"Extensions are used to identify the type of file.  There is a standard"
  158. 6,8,3,0,"here too that, while it looks complex, is easy to understand once you"
  159. 7,8,3,0,"begin to use the system on a regular basis:"
  160. SPACE,0,3
  161. 9,8,2,0, ".COM  Command program. Performs a function directly from DOS"
  162. SPACE,0,3
  163. 10,8,3,0,".EXE  Executable program.  A big, multi-function .COM program"
  164. SPACE,0,3
  165. 11,8,4,0,".BAS  A BASIC language program.  Must be executed from BASIC, not DOS"
  166. SPACE,0,3
  167. 12,8,5,0,".BAK  A backup of another file; probably there for safety reasons"
  168. SPACE,0,3
  169. 13,8,6,0,".DAT  A data file.  Not a program; rather a collection of information"
  170. SPACE,0,3
  171. 14,8,7,0,".DOC  Documention. A set of instructions or a manual"
  172. SPACE,0,3
  173. 15,8,2,0,".TXT  Text file.  Either instructions or general information"
  174. SPACE,0,3
  175. 16,8,3,0,".DEF  Definition file.  Used by a program to decide how to do things"
  176. SPACE,0,3
  177. 17,8,4,0,".SYS  A system program used internally by the computer"
  178. SPACE,0,3
  179. 18,8,5,0,".BAT  A batch file. Causes the computer to do things automatically" 
  180. SPACE,0,3
  181. 19,8,6,0,".HLP  Help file. Used by a program to help explain itself to the user"
  182. SPACE,0,3
  183. 21,0,15,0,"Press SPACE to continue on to the next screen: Filename Examples."
  184. SPACE,0,3
  185. CLS,1,25,0,5
  186. BOX,1,1,25,80,1,10,5
  187. 3,0,3,5,"FILENAMES"
  188. 5,8,7,5,"Following are some filename examples.  See if you can tell whether"
  189. 6,8,7,5,"they are valid or invalid (press Y or N).  If you choose incorrectly"
  190. 7,8,7,5,"a beep will sound."
  191. SPACE,5,7
  192. 9,10,0,5,"YEARDATE.DOC"
  193. INKEY,2,Y
  194. 9,30,1,5,"Yes. 8 characters, a period, and an extension."
  195. 11,10,0,5,"TIMER"
  196. INKEY,2,Y
  197. 11,30,1,5,"Yes. An extension is allowed but not required."
  198. 13,10,0,5,"SALE FIG.DAT"
  199. INKEY,2,N
  200. 13,30,1,5,"A space is a non-allowable character."
  201. 15,10,0,5,"MERCHANTS.DOC"
  202. INKEY,2,N
  203. 15,30,1,5,"To many characters... 8 maximum."
  204. 17,10,0,5,"JAN15SAL.REC"
  205. INKEY,2,Y
  206. 17,30,1,5,"Yes. Numbers are allowed."
  207. 19,10,0,5,"GROSSALE DOC"
  208. INKEY,2,N
  209. 19,30,1,5,"Missing period between filename and extension."
  210. SPACE,5,1
  211. CLS,1,25,0,3
  212. BOX,1,1,25,80,1,10,3
  213. 3,0,4,3,"████▄  █████  █████   █   █████"
  214. 4,0,4,3,"█   █  █   █  █       █   █    "
  215. 5,0,4,3,"████▀  █████  █████   █   █    "
  216. 6,0,4,3,"█  ▀█  █   █      █   █   █    "
  217. 7,0,4,3,"████▀  █   █  █████   █   █████"
  218. 9,0,10,3,"BASIC ALL-PURPOSE SYMBOLIC INSTRUCTION CODE"
  219. 11,8,1,3,"B.A.S.I.C. is a programming LANGUAGE.  This means you can use it to"
  220. 12,8,1,3,"write computer programs.  It is difficult and time consuming to learn"
  221. 13,8,1,3,"and you may or may not want to mess around with it.  But some programs"
  222. 14,8,1,3,"require that you have a copy of BASIC to use them.  We need to show"
  223. 15,8,1,3,"you at this time how BASIC works."
  224. SPACE,3,1
  225. 16,8,0,3,"To get into the BASIC language from DOS, simply enter the command"
  226. 17,8,0,3,"BASICA or GWBASIC or whatever the name of your particular basic"
  227. 18,8,0,3,"language happens to be, followed by the name of your program."
  228. 19,0,15,3,"EXAMPLE:      BASICA PROGNAME.BAS"
  229. SPACE,3,0
  230. 20,8,1,3,"To exit back to DOS again, enter  SYSTEM."
  231. 21,8,1,3,"You can recognize a BASIC program by its extension of  .BAS"
  232. 22,8,1,3,"That's all we will discuss of this matter at this time.  A full"
  233. 23,8,1,3,"explanation of BASIC is contained in one of our other tutorals."
  234. SPACE,3,1
  235. CLS,1,25,4,7
  236. BOX,1,1,25,80,1,10,7
  237. 3,0,4,7,"█      ████   █  ████   █████  █████  █████  █████  ████   █  █████  █████"
  238. 4,0,4,7," █     █   █  █  █   █  █      █        █    █   █  █   █  █  █      █    "
  239. 5,0,4,7,"  █    █   █  █  ████   ████   █        █    █   █  ████   █  ████   █████"
  240. 6,0,4,7,"   █   █   █  █  █  █   █      █        █    █   █  █  █   █  █          █"
  241. 7,0,4,7,"    █  ████   █  █   █  █████  █████    █    █████  █   █  █  █████  █████"
  242. 9,8,1,7,"A DIRECTORY is a CATEGORY of your disk that is intended for a specific"
  243. 9,10,14,7,"DIRECTORY"
  244. 10,8,1,7,"kind of information.  Note the '\' symbol above?  That is the symbol"
  245. 11,8,1,7,"that is used to separate one directory from another."
  246. SPACE,7,1
  247. 13,8,1,7,"As an example, let's say you have the following kinds of information"
  248. 14,8,1,7,"you wish to store on your computer:  LETTERS, INVOICES, CLIENTS.  In"
  249. 15,8,1,7,"addition to these main areas, you wish to have two sub-categories"
  250. 16,8,1,7,"within the LETTERS section called BUSINESS and PERSONAL, to indicate"
  251. 17,8,1,7,"business and personal letters."
  252. SPACE,7,1
  253. 19,8,1,7,"The MAIN directory is used as the base of all the other directories."
  254. 20,8,1,7,"Remember that directories are used MOSTLY on hard disks, although"
  255. 21,8,1,7,"from time to time you may discover them on floppies."
  256. SPACE,7,1
  257. CLS,1,25,7,1
  258. BOX,1,1,25,80,1,10,1
  259. 3,0,4,1,"DIRECTORIES AND SUB-DIRECTORIES"
  260. 5,8,13,1,"MAIN ───┬─ LETTERS ──┬─ BUSINESS"
  261. 6,8,13,1,"        │            └─ PERSONAL"      
  262. 6,46,15,1,"\LETTERS\PERSONAL\filename.ext"
  263. 7,8,13,1,"        ├─ INVOICES             "
  264. 8,8,13,1,"        └─ CLIENTS              "
  265. 10,8,7,1,"The above diagram illustrates how directories are designed.  To get"
  266. 11,8,7,1,"to one directory, you must go through another.  For example, to get"
  267. 12,8,7,1,"to the personal letters area, you must go through the MAIN-LETTERS-"
  268. 13,8,7,1,"PERSONAL area.  The \ symbol is the MAIN (or ROOT) directory"
  269. SPACE,1,7
  270. 15,8,3,1,"If this seems a little complicated, imagine your disk to be a house"
  271. 16,8,3,1,"with several rooms.  To get to the back bedroom you have to go"
  272. 17,8,3,1,"through the FRONT DOOR \ LIVING ROOM \ HALLWAY \BACK BEDROOM.  So too"
  273. 18,8,3,1,"with your disk."
  274. SPACE,1,3
  275. 20,8,5,1,"There are several commands designed to help you manipulate directories"
  276. 21,8,5,1,"and change around between them.  We will discuss these later on in"
  277. 22,8,5,1,"this lesson.  For now, suffice that you use DIRECTORIES to move"
  278. 23,8,5,1,"from one place in your computer to another."
  279. SPACE,1,5
  280. CLS,1,25,0,4
  281. BOX,1,1,25,80,1,10,4
  282. 3,0,2,4,"█████  █████ ███████  ███████  █████  █   █  ████   █████"
  283. 4,0,2,4,"█      █   █ █  █  █  █  █  █  █   █  ██  █  █   █  █    "
  284. 5,0,2,4,"█      █   █ █  █  █  █  █  █  █████  █ █ █  █   █  █████"
  285. 6,0,2,4,"█      █   █ █  █  █  █  █  █  █   █  █  ██  █   █      █"
  286. 7,0,2,4,"█████  █████ █  █  █  █  █  █  █   █  █   █  ████   █████"
  287. 9,8,7,4,"   You give your computer COMMANDS when you wish it to do something."
  288. 10,8,7,4,"The computer has been programmed to respond to those commands when"
  289. 11,8,7,4,"they are properly entered.  How does it do so?  Let's consider"
  290. 12,8,7,4,"an illustration:"
  291. SPACE,4,7
  292. 14,8,2,0,"∙∙∙∙∙∙∙"
  293. 15,8,2,0,"∙∙∙∙∙∙∙"
  294. 16,8,2,0,"∙∙∙∙∙∙∙"
  295. 17,8,2,0,"∙∙∙∙∙∙∙"
  296. 18,8,2,0,"∙∙∙∙∙∙∙"
  297. 19,8,2,0,"∙∙∙∙∙∙∙"
  298. 20,8,2,0,"∙∙∙∙∙∙∙"
  299. 21,8,7,0,"       "
  300. 21,11,15,7,"▄"
  301. 14,20,3,4,"This represents an electronic light bulb board which"
  302. 15,20,3,4,"contains 49 bulbs.  If we were to rig a main power switch"
  303. 16,20,3,4,"to a bundle of wires and hook those wires to certain"
  304. 17,20,3,4,"bulbs, when we flipped the switch we would get an"
  305. 18,20,3,4,"interesting result.  Why don't you flip that switch ON"
  306. 19,20,3,4,"by pressing the number 1."
  307. 19,43,15,4,"1"
  308. INKEY,2,1
  309. 15,11,10,0,""
  310. 16,10,10,0,""
  311. 16,12,10,0,""
  312. 17,9,10,0,""
  313. 17,13,10,0,""
  314. 18,9,10,0,""
  315. 19,9,10,0,""
  316. 19,13,10,0,""
  317. 21,11,15,7,"▀"
  318. SPACE,1,2
  319. 20,20,3,4,"                                                         "
  320. 19,20,3,4,"                                                         "
  321. 18,20,3,4,"                                                         "
  322. 17,20,3,4,"                                                         "
  323. 16,20,3,4,"                                                         "
  324. 15,20,3,4,"                                                         "
  325. 14,20,3,4,"                                                         "
  326. 14,20,3,4,"As you can see, the board now shows the letter A.  You"
  327. 15,20,3,4,"have, in effect, PROGRAMMED the board by placing the"
  328. 16,20,3,4,"wires in the right spots and hooking them to a central"
  329. 17,20,3,4,"switch.  You might even label that switch  A  so you"
  330. 18,20,3,4,"know in the future what it does."
  331. SPACE,4,3
  332. CLS,1,25,0,5
  333. BOX,1,1,25,80,1,10,5
  334. 3,8,0,5,"Now what would happen if we rigged a WHOLE BUNCH of wires and a"
  335. 4,8,0,5,"WHOLE BUNCH of bulbs to one main power switch?"
  336. 6,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  337. 7,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  338. 8,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  339. 9,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  340. 10,8,4,0,"∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  341. 11,8,4,0,"∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  342. 12,8,4,0,"∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  343. 8,51,10,5,"FIRE IT UP!"
  344. 10,55,7,0,"███"
  345. 11,55,7,0,"███"
  346. 12,55,7,0,"███"
  347. 11,56,0,7,"1"
  348. INKEY,2,1
  349. 7,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  350. 8,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  351. 9,8,4,0, "∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  352. 10,8,4,0,"∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙"
  353. 11,8,4,0,"∙∙∙∙∙∙∙∙∙∙∙∙∙"
  354. 14,0,10,5,"WOW!  WHAT A RUSH!"
  355. SPACE,0,4
  356. 16,8,1,5,"Now, imagine that you had an UNLIMITED number of light bulbs to work"
  357. 17,8,1,5,"with, and some of them were on special circuits that would only light"
  358. 18,8,1,5,"if another bulb was already lit.  Then IF that bulb was lit, it would"
  359. 19,8,1,5,"then automatically light a bunch of others... that's a basic"
  360. 20,8,1,5,"explanation of how a computer program works; it flips the right"
  361. 21,8,1,5,"switches on and off at the right times."
  362. SPACE,5,1
  363. CLS,1,25,0,3
  364. BOX,1,1,25,80,1,10,3
  365. 3,0,15,3,"INTERNAL/EXTERNAL DOS COMMANDS"
  366. 5,8,1,3,"DOS commands tell your computer to perform a certain task.  There are"
  367. 6,8,1,3,"two general classifications of command:"
  368. SPACE,3,1
  369. 8,8,0,3,"INTERNAL.  These are commands that remain in the computer's RAM for"
  370. 9,8,0,3,"    as long as the system is turned on.  You can call on these"
  371. 10,8,0,3,"    commands any time you need them."
  372. SPACE,3,0
  373. 12,8,1,3,"EXTERNAL.  These are actual DOS sub-programs that reside on the DOS"
  374. 13,8,1,3,"    disk.  You must have those programs on your hard disk or you must"
  375. 14,8,1,3,"    use a DOS floppy disk when calling on these programs."
  376. SPACE,3,1
  377. CLS,1,25,0,6
  378. 3,0,7,6,"█████  █      █████"
  379. 4,0,7,6,"█      █      █    "
  380. 5,0,7,6,"█      █      █████"
  381. 6,0,7,6,"█      █          █"
  382. 7,0,7,6,"█████  █████  █████"
  383. 9,8,0,6,"AWWRIIIGHT!  Now we get to the good stuff.  We're going to actually"
  384. 10,8,0,6,"start learning the commands themselves.  The first one we will start"
  385. 11,8,0,6,"with is CLS.  This means CLear the Screen, and is used any time you"
  386. 12,8,0,6,"want to erase what is on the screen.  This command does NOT affect"
  387. 13,8,0,6,"RAM or any disk storage... just the screen."
  388. SPACE,6,0
  389. 15,8,0,6,"Understand that there is a difference between DOS and PROGRAMS.  DOS"
  390. 16,8,0,6,"is the HEART of your computer.  Programs run separate from DOS"
  391. 17,8,0,6,"(usually) and use different commands than DOS, refering to DOS only"
  392. 18,8,0,6,"when they need to do special things like read and write from your disk"
  393. 19,8,0,6,"system.  That is why it's called the DISK OPERATING SYSTEM."
  394. SPACE,6,0
  395. 21,8,0,6,"So it is not likely that CLS will work in other applications than"
  396. 22,8,0,6,"DOS itself, but it WILL work here!  Try it:  "
  397. INPUT,2,23,8,EXACT,CLS
  398. CLS,1,25,0,6
  399. SPACE,6,0
  400. 10,0,15,6,"VERY GOOD!  YOU HAVE JUST USED A DOS COMMAND!"
  401. SPACE,6,0
  402. CLS,1,25,1,7
  403. 3,0,4,7,"████    █   █████"
  404. 4,0,4,7,"█   █   █   █   █"
  405. 5,0,4,7,"█   █   █   █████"
  406. 6,0,4,7,"█   █   █   █  █ "
  407. 7,0,4,7,"████    █   █   █"
  408. 9,8,1,7,"DIR provides you with a DIRectory, or catalog/index of what is on your"
  409. 10,8,1,7,"disk.  To show you how this works, we're going to present you with an"
  410. 11,8,1,7,"actual directory of this disk!"
  411. 12,8,0,7,"Go ahead now and enter the command:  "
  412. INPUT,2,13,8,EXACT,DIR
  413. SHELL,DIR
  414. SPACE,7,0
  415. CLS,1,25,1,0
  416. BOX,1,1,25,80,1,10,0
  417. 3,8,2,0,"If that looked confusing, don't worry.  We'll explain everything nice"
  418. 4,8,2,0,"and neat so you can understand what you just saw.  A typical directory"
  419. 5,8,2,0,"looks something like this:"
  420. 7,8,7,0,"Volume in drive A is COMPTUTOR"
  421. 8,8,7,0,"Directory of A:\"
  422. 10,8,7,0, "TUTOR     EXE     72768  01-15-88  12:31p"
  423. 11,8,7,0, "DT1       DAT     31374  01-18-88   5:14a"
  424. 12,8,7,0, "DT2       DAT     38992  01-19-88   2:04p"
  425. 13,15,7,0,"3 File(s)   219362 bytes free"
  426. SPACE,0,7
  427. 14,8,15,0," fname    ext     size    date      time"
  428. 16,8,3,0,"FNAME is the name of the file."
  429. 17,8,3,0,"EXT is the extension telling what kind of file it is."
  430. 18,8,3,0,"SIZE is the number of BYTES the file consumes on the disk."
  431. 19,8,3,0,"DATE is the last date the file was changed (updated)."
  432. 20,8,3,0,"TIME is the last time the file was changed."
  433. 21,8,3,0,"The bottom line tells how many files are present, and how much"
  434. 22,8,3,0,"space is still available on the disk... in this case 219362 characters."
  435. SPACE,7,0
  436. CLS,1,25,1,1
  437. 3,0,15,1,"OTHER DIR OPTIONS"
  438. 5,8,2,1,"DIR/W instructs the computer to show the directory in WIDE format."
  439. 5,8,13,1,"DIR/W"
  440. SPACE,1,2
  441. 8,8,3,1,"DIR/P tells it to show the directory a PAGE at a time, then pause and"
  442. 8,8,10,1,"DIR/P"
  443. 9,8,3,1,"      wait for you to press a key before it continues."
  444. SPACE,1,3
  445. 11,8,7,1,"Go ahead and try the /W option:  "
  446. INPUT,0,13,8,EXACT,DIR/W
  447. SHELL,DIR/W
  448. SPACE,3,1
  449. CLS,18,24,0,1
  450. BOX,18,1,24,80,1,13,1
  451. 20,8,7,1,"As you can see, this option eliminates the 'detail' section of the"
  452. 21,8,7,1,"directory listing and presents you with just the filenames and free"
  453. 22,8,7,1,"disk space.  This allows more filenames to be shown at one time."
  454. SPACE,1,7
  455. CLS,1,25,1,2
  456. BOX,1,1,25,80,1,10,2
  457. 3,0,1,2,"█  █  █  █  █      ████   █████  █████  █████  ████      █ █ █"
  458. 4,0,1,2,"█  █  █  █  █      █   █  █      █   █  █   █  █   █      ███ "
  459. 5,0,1,2,"█  █  █  █  █      █   █  █      █████  █████  █   █     █████"
  460. 6,0,1,2,"█  █  █  █  █      █   █  █      █   █  █  █   █   █      ███ "
  461. 7,0,1,2,"███████  █  █████  ████   █████  █   █  █   █  ████   █  █ █ █"
  462. 9,8,0,2,"The asterisk (*) is a filename 'wildcard', which means it can be used"
  463. 10,8,0,2,"to replace either the filename or the extension.  It means ALL. Thus,"
  464. 11,8,0,2,"a filename of *.BAS means ALL files with an extension of BAS."
  465. SPACE,2,0
  466. 13,8,1,2,"What is the use of this 'wildcard'?  Let's imagine you wished to see"
  467. 14,8,1,2,"the DIRectory of all DATa files, and exclude any file that is not"
  468. 15,8,1,2,"a data file.  You could use the wildcard command:  "
  469. 15,59,11,2,"DIR *.DAT"
  470. 16,8,1,2,"We'll use an imaginary disk for this demonstration."
  471. 17,8,1,2,"Go ahead and enter the command:  "
  472. INPUT,0,18,8,EXACT,DIR *.DAT
  473. 19,8,0,2,"Volume in drive A is HOMEDISK"
  474. 20,8,0,2,"Directory of A:\"
  475. 21,8,0,2, "RECIPE    DAT     11523  10-04-82   3:15a"
  476. 22,8,0,2, "PHONENUM  DAT      2642   7-12-85   7:19p"
  477. 23,15,0,2,"2 File(s)   348331 bytes free"
  478. SPACE,2,0
  479. CLS,1,25,1,3
  480. BOX,1,1,25,80,1,10,3
  481. 3,0,1,3,"█  █  █  █  █████  ████   █████  █████  █████  ████      █ █ █"
  482. 4,0,1,3,"█  █  █  █      █  █   █  █      █   █  █   █  █   █      ███ "
  483. 5,0,1,3,"█  █  █  █   ████  █   █  █      █████  █████  █   █     █████"
  484. 6,0,1,3,"█  █  █  █   ▀     █   █  █      █   █  █  █   █   █      ███ "
  485. 7,0,1,3,"███████  █   █     ████   █████  █   █  █   █  ████   █  █ █ █"
  486. 9,8,0,3,"The question mark (?) replaces individual characters in a filename."
  487. 10,8,0,3,"This comes in handy when you have several SIMILAR filenames.  For"
  488. 11,8,0,3,"example, imagine that you have several SALES files that are updated"
  489. 12,8,0,3,"monthly, giving you SALE0187, SALE0287, and SALE0387.  You can see"
  490. 13,8,0,3,"the directory of all of these files by entering:  DIR SALE??87"
  491. 13,58,15,3,"DIR SALE??87"
  492. 14,8,0,3,"Go ahead and enter that command:  "
  493. INPUT,0,15,8,EXACT,DIR SALE??87
  494. 16,8,1,3,"Volume in drive A is SALESINFO"
  495. 17,8,1,3,"Directory of A:\"
  496. 18,8,1,3,"SALE0187           3504  01-31-87   4:15p"
  497. 19,8,1,3,"SALE0287           3504  02-28-87   4:07p"
  498. 20,8,1,3,"SALE0387           3504  03-31-87   4:45p"
  499. 21,15,1,3,"3 File(s)   351984 bytes free"
  500. SPACE,3,1
  501. CLS,1,25,7,4
  502. BOX,9,1,14,80,1,12,4
  503. 10,8,7,4,"Of course, wildcard characters can be used for much more than just"
  504. 11,8,7,4,"viewing the contents of a disk.  You can use them to copy files"
  505. 12,8,7,4,"from one disk to another (or one directory to another), and to"
  506. 13,8,7,4,"erase old files.  We will learn more about this soon."
  507. SPACE,4,7
  508. CLS,1,25,1,5
  509. BOX,1,1,24,80,1,12,5
  510. 3,0,3,5,"█████           ████            █████   "
  511. 4,0,3,5,"█   █  █        █   █  █        █      █"
  512. 5,0,3,5,"█████           ████            █       "
  513. 6,0,3,5,"█   █  █        █   █  █        █      █"
  514. 7,0,3,5,"█   █           ████            █████   "
  515. 9,8,1,5,"No, we're not going to review the alphabet here.  We're going discuss"
  516. 10,8,1,5,"DRIVE NAMES.  Each disk drive on your computer has a name.  Drive A"
  517. 10,8,15,5,"DRIVE NAMES"
  518. 11,8,1,5,"is always your first floppy disk drive.  Drive B is either a second"
  519. 12,8,1,5,"floppy drive OR an imaginary drive that allows you to do some things"
  520. 13,8,1,5,"on a single-drive system that would otherwise be impossible.  Drive"
  521. 14,8,1,5,"C can be a third floppy, but is usually a hard disk drive.  Drive"
  522. 15,8,1,5,"names are always a letter of the alphabet and must be contiguous (you"
  523. 16,8,1,5,"can't skip letters)."
  524. SPACE,5,1
  525. 18,8,3,5,"Drive names must always be followed by a colon (:) to indicate to"
  526. 19,8,3,5,"computer that it is a disk drive and not a filename.  That's because"
  527. 20,8,3,5,"you can also have FILES that are named A, B and C."
  528. SPACE,5,3
  529. CLS,1,25,7,6
  530. BOX,1,1,24,80,1,12,6
  531. 3,0,14,6,"THE PROMPT"
  532. 5,8,7,6,"You have probably noticed a little line that often appears on your"
  533. 6,8,7,6,"computer that looks something like this:"
  534. 7,8,0,6,"A>"
  535. SPACE,6,7
  536. 8,8,7,6,"This is called a PROMPT.  It tells you the NAME of the drive you are"
  537. 9,8,7,6,"currently using.  You can change from one drive to another by entering"
  538. 10,8,7,6,"the drive name followed by a colon.  Let's imagine we wish to switch"
  539. 11,8,7,6,"to drive B (we won't actually do this; we'll just play at it).  Enter"
  540. 12,8,7,6,"the command...     B:"
  541. 12,27,15,6,"B:"
  542. 13,8,7,6,"Go ahead, try it now:  "
  543. 14,8,0,6,"A>"
  544. INPUT,0,0,0,EXACT,B:
  545. 15,8,0,6,"B>"
  546. 17,8,7,6,"As you can see, you have switched to drive B.  Now switch back again."
  547. 18,8,0,6,"B>"
  548. INPUT,0,0,0,EXACT,A:
  549. 19,8,0,6,"A>"
  550. 21,8,7,6,"No one knows why you enter a colon (:) and get back a carrot (>)."
  551. 22,8,7,6,"Just another one of those fun little things that make computing"
  552. 23,8,7,6,"enjoyable."
  553. SPACE,6,7
  554. CLS,1,25,1,7
  555. BOX,1,1,24,80,1,12,7
  556. 3,0,14,7,"DIRECTORY OF ANOTHER DISK"
  557. 5,8,1,7,"You can use the same principle to perform functions on another disk."
  558. 6,8,1,7,"If you wished to see the directory of drive B, you COULD switch over"
  559. 7,8,1,7,"to drive B with a B: and then give the DIR command.  OR you could use"
  560. 8,8,1,7,"another command that is much easier....  DIR B:  Go ahead and try it."
  561. 8,49,14,7,"DIR B:"
  562. 9,8,1,7,"A>"
  563. INPUT,0,0,0,EXACT,DIR B:
  564. 10,8,1,7,"Volume in drive B is DATADISK"
  565. 11,8,1,7,"Directory of B:\"
  566. 12,8,1,7,"DATAITEM  DOC     22598  07-15-83   1:05p"
  567. 13,8,1,7,"NEWSALES  TXT     45962  03-28-87   5:07p"
  568. 14,8,1,7,"TIMESCAN  DAT     11690  04-18-84   9:45a"
  569. 15,15,1,7,"3 File(s)   282246 bytes free"
  570. 16,8,1,7,"A>"
  571. 18,8,5,7,"As you can see, you were able to see the directory of drive B while"
  572. 19,8,5,7,"still remaining in drive A (note the A> at the bottom)."
  573. SPACE,7,5
  574. CLS,1,25,2,0
  575. BOX,1,1,24,80,1,12,0
  576. 3,0,2,0,"█████  █████  █████  █   █"
  577. 4,0,2,0,"█      █   █  █   █  █   █"
  578. 5,0,2,0,"█      █   █  █████  █████"
  579. 6,0,2,0,"█      █   █  █        █  "
  580. 7,0,2,0,"█████  █████  █        █  "
  581. 9,8,5,0,"The COPY command has several different forms.  It is used to copy"
  582. 10,8,5,0,"information from one place to another.  You can use COPY to:"
  583. 11,15,3,0,"1. Copy files to another disk."
  584. 12,15,3,0,"2. Copy a file to make a duplicate with a different filename."
  585. 13,15,3,0,"3. Create a file by typing in the information."
  586. SPACE,0,3
  587. 15,8,5,0,"We will learn how to use the different forms of COPY now.  The first"
  588. 16,8,5,0,"form is the easiest to use.  In all forms of the COPY command, you"
  589. 17,8,5,0,"must tell the system WHAT you want to copy, WHERE it comes from, and"
  590. 18,8,5,0,"the DESTINATION of the copy."
  591. SPACE,0,5
  592. CLS,1,25,0,1
  593. BOX,1,1,24,80,1,14,1
  594. 3,0,2,1,"COPY d1:filename d2:filename"
  595. 5,8,7,1,"The above information is the SYNTAX of the copy command (SYNTAX means"
  596. 6,8,7,1,"required information).  For example, if you have two floppy disk"
  597. 7,8,7,1,"drives (A and B) and wish to copy the file TIMENOTE.DOC from drive"
  598. 8,8,7,1,"A to B, you would use the syntax:  COPY A:TIMENOTE.DOC B:TIMENOTE.DOC"
  599. 8,43,13,1,"COPY A:TIMENOTE.DOC B:TIMENOTE.DOC"
  600. SPACE,1,7
  601. 13,8,7,1,"Why don't you go ahead and try the command as we showed in the above"
  602. 14,8,7,1,"example.  We will first of all wish to clear the screen.  Go ahead"
  603. 15,8,7,1,"and enter the command which clears the screen:"
  604. 18,8,3,1,"A>"
  605. INPUT,2,0,0,ANY
  606. IF,2,NOT,CLS,20,8,7,1,"The correct command is CLS.  Go ahead an try it again."
  607. IF,2,NOT,CLS,18,10,3,1,"        "
  608. IF,2,NOT,CLS,INPUT,2,18,10,EXACT,CLS
  609. CLS,1,25,0,2
  610. 2,8,0,2,"Now let's see what is on drive B: already.  Do you remember the"
  611. 3,8,0,2,"proper command to get a directory of drive B?"
  612. 5,8,1,2,"A>"
  613. INPUT,2,0,0,ANY
  614. IF,2,NOT,DIR B:,4,8,15,2,"The correct command is:  DIR B:"
  615. IF,2,NOT,DIR B:,5,10,1,2,"             "
  616. IF,2,NOT,DIR B:,INPUT,2,5,10,EXACT,DIR B:
  617. 6,8,1,2,"Volume in drive B is TAXACCT"
  618. 7,8,1,2,"Directory of B:\"
  619. 8,8,1,2,"     File not found"
  620. 9,8,1,2,"A>"
  621. SPACE,2,0
  622. 11,8,0,2,"FILE NOT FOUND means no files currently exist on the disk in drive B."
  623. 12,8,0,2,"Now give it the command to copy the file:  COPY A:TIMENOTE.DOC B:"
  624. INPUT,2,9,10,EXACT,COPY A:TIMENOTE.DOC B:
  625. 13,8,1,2,"   1 File(s) copied"
  626. 14,8,1,2,"A>"
  627. SPACE,2,0
  628. 15,8,0,2,"Now let's look again at the directory of B.  Give the command."
  629. INPUT,2,14,10,EXACT,DIR B:
  630. 16,8,1,2,"Volume in drive B is TAXACCT"
  631. 17,8,1,2,"Directory of B:\"
  632. 19,8,1,2,"TIMENOTE DOC   59312   01-08-88  3:24p"
  633. 20,8,1,2,"     1 File(s)   303184 bytes free"
  634. 21,8,1,2,"A>"
  635. SPACE,2,1
  636. 23,8,0,2,"This shows that the file TIMENOTE.DOC has been copied to drive B."
  637. SPACE,2,0
  638. CLS,1,25,0,3
  639. 2,0,14,3,"COPY filename1 filename2"
  640. 8,8,0,3,"Sometimes you may wish to copy a file to the same disk but under a"
  641. 9,8,0,3,"different name.  Why?  Because of the need for BACKUP copies.  Your"
  642. 10,8,0,3,"computer files are magnetic information and can be changed at any"
  643. 11,8,0,3,"time.  Because of this, human or computer error can destroy a file"
  644. 12,8,0,3,"or even an entire disk of information.  It is wise to always have"
  645. 13,8,0,3,"backup copies so that WHEN you do lose a file (and you will) you have"
  646. 14,8,0,3,"a copy to replace it.  Let's try using this command to make a"
  647. 15,8,0,3,"backup."
  648. SPACE,3,0
  649. CLS,1,25,0,4
  650. 3,8,3,4,"The command to give is COPY TIMENOTE.DOC TIMENOTE.BAK     You do not"
  651. 3,31,15,4,"COPY TIMENOTE.DOC TIMENOTE.BAK"
  652. 4,8,3,4,"need drive names here because you are making a copy on the same disk."
  653. 5,8,3,4,"Try this on your own.  Look at the directory of A, copy the file,"
  654. 6,8,3,4,"then recheck the directory to make sure it copied correctly."
  655. 8,8,7,4,"A>"
  656. 8,10,0,4,""
  657. INPUT,2,8,10,DIR A:
  658. IF,2,NOT,DIR,8,20,7,4,"Just DIR will do. Try again."
  659. IF,2,NOT,DIR,8,10,7,4,"          "
  660. IF,2,NOT,DIR,INPUT,2,8,10,EXACT,DIR
  661. 9,8,7,4,"Volume in drive A is DISK1"
  662. 10,8,7,4,"Directory of A:\"
  663. 11,8,7,4,"TIMENOTE DOC   59312   01-08-88  3:24p"
  664. 12,8,7,4,"     1 File(s)   303184 bytes free"
  665. 13,8,7,4,"A>"
  666. 13,10,0,4,""
  667. INPUT,2,13,10,EXACT,COPY TIMENOTE.DOC TIMENOTE.BAK
  668. 14,8,7,4,"   1 File(s) copied"
  669. 15,8,7,4,"A>"
  670. 15,10,0,4,""
  671. INPUT,2,15,10,EXACT,DIR
  672. 16,8,7,4,"Volume in drive A is DISK1"
  673. 17,8,7,4,"Directory of A:\"
  674. 18,8,7,4,"TIMENOTE DOC   59312   01-08-88  3:24p"
  675. 19,8,7,4,"TIMENOTE BAK   59312   01-08-88  3:24p"
  676. 20,8,7,4,"     1 File(s)   243872 bytes free"
  677. 21,8,7,4,"A>"
  678. 23,0,15,4,"VERY GOOD!!!"
  679. SPACE,4,7
  680. CLS,1,25,0,5
  681. 2,0,15,5,"COPY filename PRN"
  682. 4,8,0,5,"  Have you ever wondered how you could instantly copy a file"
  683. 5,8,0,5,"to your printer?  This is how you do it.  By substituting your"
  684. 6,8,0,5,"desired filename in the above command, you should be able to print"
  685. 7,8,0,5,"out most files to your printer."
  686. 10,0,13,5,"EXAMPLE:   COPY MYFILE.DAT PRN"
  687. SPACE,0,5
  688. CLS,1,25,0,5
  689. BOX,1,1,25,80,1,10,5
  690. 3,0,14,5,"█████ █ █   █ █████ █     █████     █████ █     █████ █████ █████ █   █"
  691. 4,0,14,5,"█     █ ██  █ █     █     █         █     █     █   █ █   █ █   █ █   █"
  692. 5,0,14,5,"█████ █ █ █ █ █ ███ █     ████      ████  █     █   █ █████ █████ █████"
  693. 6,0,14,5,"    █ █ █  ██ █   █ █     █         █     █     █   █ █     █       █  "
  694. 7,0,14,5,"█████ █ █   █ █████ █████ █████     █     █████ █████ █     █       █  "
  695. 9,0,14,5, "█████ █████ █████ █   █"
  696. 10,0,14,5,"█     █   █ █   █ █   █"
  697. 11,0,14,5,"█     █   █ █████ █████"
  698. 12,0,14,5,"█     █   █ █       █  "
  699. 13,0,14,5,"█████ █████ █       █  "
  700. 15,8,1,5,"You know how it is.  Just when you think you've got it figured out,"
  701. 16,8,1,5,"someone throws a monkey wrench into the works.  The COPY command"
  702. 17,8,1,5,"is used to copy files from one hard disk subdirectory to another, or"
  703. 18,8,1,5,"to copy from hard disk to floppy disk, or to copy a file or set of"
  704. 19,8,1,5,"files from one diskette to another diskette.  That all sounds easy"
  705. 20,8,1,5,"enough to do.  But what about those who have only one floppy drive?"
  706. SPACE,5,1
  707. CLS,1,25,0,6
  708. BOX,1,1,25,80,1,10,6
  709. 3,8,7,6,"That complicates things, since COPY works without pausing.  But there"
  710. 4,8,7,6,"is a provision of DOS to handle that.  It is called the LOGICAL DRIVE."
  711. 4,64,14,6,"LOGICAL DRIVE"
  712. 5,8,7,6,"This is an imaginary drive that the computer THINKS is there.  Usually"
  713. 6,8,7,6,"a second floppy disk drive would be known as drive B.  But if you have"
  714. 7,8,7,6,"only one drive, the computer still THINKS there is a drive B and it"
  715. 8,8,7,6,"uses drive A for both drives.  Does this sound confusing?"
  716. 9,0,15,6,"That's because it is!!!!"
  717. SPACE,6,7
  718. 11,8,0,6,"But we can make it easier to understand if we do a single drive"
  719. 12,8,0,6,"COPY.  The command to copy a file from one diskette to another on"
  720. 13,8,0,6,"a single disk drive is:"
  721. 14,0,14,6,"COPY A:filename B:"
  722. SPACE,6,7
  723. 16,8,7,6,"The computer, if given this command, will begin the copy, and then"
  724. 17,8,7,6,"will prompt you to switch from the SOURCE to the TARGET diskette."
  725. 18,8,7,6,"On the next screen we will simulate this process."
  726. SPACE,6,7
  727. CLS,1,25,1,7
  728. BOX,1,1,25,80,1,10,7
  729. 3,8,1,7,"We want to copy a file called ACCOUNTS.DAT from one diskette to"
  730. 4,8,1,7,"another.  We only have one floppy drive, A, and no hard disk.  Enter"
  731. 5,8,1,7,"the command you would use to do this (can you remember it?)"
  732. 7,8,1,7,"A>"
  733. INPUT,2,7,10,ANY
  734. IF,2,NOT,COPY A:ACCOUNTS.DAT B:,7,40,4,7,"TRY: COPY A:ACCOUNTS.DAT B:"
  735. IF,2,NOT,COPY A:ACCOUNTS.DAT B:,INPUT,2,7,10,EXACT,COPY A:ACCOUNTS.DAT B:
  736. 8,8,1,7,"Insert SOURCE disk and press ENTER"
  737. 8,43,4,7,"(Don't insert disk for this example)"
  738. INKEY,2,ANY
  739. 9,8,1,7,"Insert DESTINATION disk and press ENTER"
  740. INKEY,2,ANY
  741. 10,8,1,7,"Insert SOURCE disk and press ENTER"
  742. INKEY,2,ANY
  743. 11,8,1,7,"Insert DESTINATION disk and press ENTER"
  744. INKEY,2,ANY
  745. 12,15,1,7,"1 File(s) copied"
  746. SPACE,7,1
  747. 15,8,5,7,"Allowing more time between source and destination diskette switching,"
  748. 16,8,5,7,"this is pretty much the way a file copy is made on a single-floppy"
  749. 17,8,5,7,"diskette system."
  750. SPACE,7,5
  751. 19,8,1,7,"Even if you have a single floppy and a hard drive, for small files"
  752. 20,8,1,7,"it is easier to do it this way than to make a copy from floppy to"
  753. 21,8,1,7,"hard drive and then copy from hard drive to the second floppy and"
  754. 22,8,1,7,"then erase the file on the hard disk (it's hard enough just to"
  755. 23,8,1,7,"DESCRIBE the process!)."
  756. SPACE,7,1
  757. CLS,1,25,0,5
  758. 2,0,15,5,"COPY CON:FILENAME"
  759. 4,8,0,5,"Have you wondered how a data file is created in the first place?"
  760. 5,8,0,5,"There are several ways, but this is the simplest method.  To use this"
  761. 6,8,0,5,"command you need to remember two things: 1-the command itself, and"
  762. 7,8,0,5,"2- the ^Z key combination.  Ctrl-Z means 'end of file' and is used to"
  763. 8,8,0,5,"stop adding information to the file once you have started."
  764. SPACE,5,0
  765. 10,8,7,5,"The LOGIC of file creation is this:  Tell the computer you are"
  766. 11,8,7,5,"creating a file, and what name it is to have.  Tell it also you will"
  767. 12,8,7,5,"enter file information directly from the keyboard.  Enter the"
  768. 13,8,7,5,"information.  Tell the computer you are finished."
  769. SPACE,5,7
  770. 15,8,3,5,"The CON: in the above command stands for CONSOLE, which means in"
  771. 16,8,3,5,"this case, your keyboard.  Therefore, you are telling the computer to"
  772. 17,8,3,5,"copy information from the KEYBOARD to the FILENAME."
  773. SPACE,5,3
  774. CLS,1,25,0,6
  775. 2,0,14,6,"COPY CON:FILENAME"
  776. 4,8,0,6,"Let's try this.  We will create a file called TEST.DOC.  First of all"
  777. 5,8,0,6,"enter the command that will get things started.  Can you do it?"
  778. 7,8,0,6,"A>"
  779. INPUT,2,0,0,ANY
  780. IF,2,NOT,COPY CON:TEST.DOC,7,40,7,6,"TRY:  COPY CON:TEST.DOC"
  781. IF,2,NOT,COPY CON:TEST.DOC,7,10,7,6,"                          "
  782. IF,2,NOT,COPY CON:TEST.DOC,INPUT,2,7,10,EXACT,COPY CON:TEST.DOC
  783. 8,8,0,6,"_"
  784. 10,8,0,6,"The computer responds with a _ character, meaning it is ready for"
  785. 11,8,0,6,"DATA INPUT (entry of information).  All you have to do is type in"
  786. 12,8,0,6,"the information until you are finished.  When you ARE through,"
  787. 13,8,0,6,"enter ^Z as the final line.  Let's enter the lines:"
  788. 14,8,7,6,"         THIS IS TEST LINE 1"
  789. 15,8,7,6,"         THIS IS TEST LINE 2"
  790. 16,8,7,6,"         HEY, THIS REALLY WORKS!             Try it now..."
  791. 16,53,0,6,"Try it now..."
  792. 17,8,0,6,"_"
  793. INPUT,2,17,8,EXACT,THIS IS TEST LINE 1
  794. 18,8,0,6,"_"
  795. INPUT,2,18,8,EXACT,THIS IS TEST LINE 2
  796. 19,8,0,6,"_"
  797. INPUT,2,19,8,EXACT,HEY, THIS REALLY WORKS!
  798. 20,8,0,6,"_"
  799. INKEY,2,ANY
  800. 20,8,0,6,"^Z"
  801. INKEY,2,ANY
  802. 21,8,0,6,"     1 File(s) copied"
  803. SPACE,6,0
  804. CLS,1,25,1,7
  805. 2,8,1,7,"Is the file really there?  Why don't you check and see?"
  806. 4,8,1,7,"A>"
  807. INPUT,2,0,0,ANY
  808. IF,2,NOT,DIR,4,40,4,7,"You need to use DIR."
  809. IF,2,NOT,DIR,4,10,4,7,"            "
  810. IF,2,NOT,DIR,INPUT,2,4,10,EXACT,DIR
  811. 5,8,1,7,"Volume in drive A is DISK1"
  812. 6,8,1,7,"Directory of A:\"
  813. 7,8,1,7,"TIMENOTE DOC   59312   01-08-88  3:24p"
  814. 8,8,1,7,"TIMENOTE BAK   59312   01-08-88  3:24p"
  815. 9,8,1,7,"TEST     DOC      66   01-08-88  5:17p"
  816. 10,8,1,7,"     1 File(s)    243806 bytes free"
  817. 11,8,1,7,"A>"
  818. 13,8,14,7,"EXCELLENT!"
  819. SPACE,7,1
  820. 17,8,4,7,"This provides you with a good understanding of how the COPY command"
  821. 18,8,4,7,"works.  In the next section we will demonstrate how you may look"
  822. 19,8,4,7,"at the file once it is created."
  823. SPACE,7,4
  824. CLS,1,25,1,7
  825. BOX,1,1,25,80,1,13,7
  826. 3,0,4,7,"█   █  █████  █   █  █████"
  827. 4,0,4,7,"██  █  █       █ █     █  "
  828. 5,0,4,7,"█ █ █  ████     █      █  "
  829. 6,0,4,7,"█  ██  █       █ █     █  "
  830. 7,0,4,7,"█   █  █████  █   █    █  "
  831. 10,8,1,7,"This section has introduced you to several commands of the Disk"
  832. 11,8,1,7,"Operating System.  In the next section we will learn additional"
  833. 12,8,1,7,"commands and see how they interract with the commands we have just"
  834. 13,8,1,7,"learned.  Press SPACE to continue on, or ESC to stop the session here."
  835. SPACE,7,1
  836. PROG,CT4.DAT
  837.